<!DOCTYPE html>
<html>
<head>
    <title>模具关联位置成本统计</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp">
    <div>
        <table id="jqGrid"></table>
    </div>
</div>
<script >
    // 获取统计年份
    var year = getQueryString("year");
    // 获取模具关联位置ID
    var moduleCorrelationPositionId = getQueryString("moduleCorrelationPositionId")
    $(function () {
        $("#jqGrid").Grid({
            url: '../modulpositioncorrelation/costStat?id=' + moduleCorrelationPositionId + '&year=' + year,
            colModel: [
                {label: 'id', name: 'id', key: true, hidden: true},
                {label: '月份', name: 'month'},
                {label: '更换寿命', name: 'avgLife'},
                {label: '更换个数', name: 'replaceNum'},
                {label: '月度成本', name: 'cost'}
            ],
            rowNum: 20,
            rowList:[]
        });
    });
</script>
</body>
</html>
